package org.jetlinks.pro.cassandra.metadata;

import lombok.AllArgsConstructor;
import org.hswebframework.ezorm.rdb.metadata.RDBTableMetadata;

import java.util.Optional;

@AllArgsConstructor(staticName = "of")
public class FixedCassandraPrimaryKeyBuilder implements CassandraPrimaryKeyBuilder {

    private final CassandraPrimaryKey primaryKey;

    @Override
    public Optional<CassandraPrimaryKey> builderPrimaryKey(RDBTableMetadata table) {
        return Optional.of(primaryKey);
    }


}
